package com.mvp.shq.washer.entity.shop;

import com.shq.mymvp.dao.StringConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Keep;
import org.greenrobot.greendao.annotation.ToMany;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;

import java.util.List;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Administrator on 2017/10/9.
 */
@Entity
public class ShopSpec {
    @Id
    private long specId;
    @Unique
    private String id;
    private String specName;
    private String productId;
    //@ToMany(referencedJoinProperty = "attrId")
    @Transient
    private List<ShopAttr> ecAttrList;


    @Generated(hash = 1226716071)
    public ShopSpec(long specId, String id, String specName, String productId) {
        this.specId = specId;
        this.id = id;
        this.specName = specName;
        this.productId = productId;
    }

    @Generated(hash = 1905943054)
    public ShopSpec() {
    }


    public long getSpecId() {
        return specId;
    }

    public void setSpecId(long specId) {
        this.specId = specId;
    }

    public List<ShopAttr> getEcAttrList() {
        return ecAttrList;
    }

    public void setEcAttrList(List<ShopAttr> ecAttrList) {
        this.ecAttrList = ecAttrList;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSpecName() {
        return specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    public List<ShopAttr> getAttrs() {
        return ecAttrList;
    }

    public void setAttrs(List<ShopAttr> attrs) {
        this.ecAttrList = attrs;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }
}
